<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<form:form class="form-horizontal" method="POST" commandName="shop"
	action="createshop.html" enctype="multipart/form-data">
	<fieldset>
		<!-- Form Name -->
		<legend>Open Shop</legend>
		<!-- Select Basic -->
		<div class="control-group">
			<label class="control-label" for="industry">What will you
				sell </label>
			<div class="controls">
				<form:select path="industry.id" id="industry" name="industry"
					class="input-xlarge">
					<c:if test="${!empty listIndustry }">
						<c:forEach items="${listIndustry}" var="industry">
							<form:option value="${industry.id }">${industry.name }</form:option>
						</c:forEach>
					</c:if>
				</form:select>
			</div>
		</div>
		<!-- Text input-->
		<div class="control-group">
			<label class="control-label" for="name">Shop name</label>
			<div class="controls">
				<form:input id="name" name="name" class="input-xlarge"
					placeholder="Shop name" path="name" />
			</div>
		</div>
		<!-- Text input-->
		<div class="control-group">
			<label class="control-label" for="address">Address</label>
			<div class="controls">
				<form:input id="address" name="address" class="input-xlarge"
					placeholder="Address" path="address" />
			</div>
		</div>
		<!-- Text input-->
		<div class="control-group">
			<label class="control-label" for="phone">Phone</label>
			<div class="controls">
				<form:input id="phone" name="phone" class="input-xlarge"
					placeholder="Phone" path="phone" />
			</div>
		</div>
		<!-- File Button -->
		<div class="control-group">
			<label class="control-label" for="filebutton">Picture</label>
			<div class="controls">
				<form:errors path="*" cssStyle="color : red;" />
				${errors}
				<form:input id="filebutton" name="filebutton" class="input-file"
					type="file" path="file" />
			</div>
		</div>
		<!-- Textarea -->
		<div class="control-group">
			<label class="control-label" for="description">Description</label>
			<div class="controls">
				<form:textarea id="description" name="description" rows="5"
					path="description" class="input-xxlarge" />
			</div>
		</div>
		<legend>Payment Account</legend>
		<div class="control-group">
			<label class="control-label" for="name">UserName</label>
			<div class="controls">
				<form:input id="name" name="paymentUsername" class="input-xlarge"
					 path="paymentUsername" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="name">PassWord</label>
			<div class="controls">
				<form:input id="name" name="paymentPassword" class="input-xlarge"
					 path="paymentPassword" />
			</div>
		</div>
		<div class="form-actions">
			<button type="submit" class="btn btn-primary">Submit</button>
			<button type="reset" class="btn">Reset</button>
		</div>
	</fieldset>
</form:form>

